package com.sm.dao;

import java.util.List;

import com.sm.model.UserAddress;
import org.apache.ibatis.annotations.Param;

public interface UserAddressMapper {
    int deleteByPrimaryKey(Integer userAddressId);

    int insert(UserAddress record);

    int insertSelective(UserAddress record);

    UserAddress selectByPrimaryKey(Integer userAddressId);

    int updateByPrimaryKeySelective(UserAddress record);

    int updateByPrimaryKey(UserAddress record);
    
    List<UserAddress> selectByUserId(Integer userAddressId);
    
    UserAddress selectByUidAndIsdefault(@Param("userId")Integer userId);

    void deleteAddress(@Param("userAddressIds")Integer... userAddressIds);

}